package chat;

import java.util.Timer;

public class chatUser {

	private String userName; // according to the exercise the username is unique
	private String lang;
	private Timer removeUser;
	
	chatUser(String name,String lang) {
		userName = name;
		this.lang = lang;
	}
	
	public String getName() {
		return userName;
	}

	public String getLang() {
		return lang;
	}

	@Override
	public int hashCode() {
		return userName.hashCode();
	}
	
	@Override
	public boolean equals(Object obj) {
		return userName.equals(obj);
	}
	
}
